package ex03.connector;

import java.io.OutputStreamWriter;
import java.io.PrintWriter;

/**
 * @packgeName: ex03.connector
 * @ClassName: ResponseWriter
 * @copyright: CopyLeft
 * @description:<描述>
 * @author: lili
 * @date: 2017/8/29-12:57
 * @version: 1.0
 * @since: JDK 1.8
 */
public class ResponseWriter extends PrintWriter{




    public ResponseWriter(OutputStreamWriter writer) {
        super(writer);
    }

    @Override
    public void print(boolean b) {
        super.print(b);
        super.flush();
    }

    @Override
    public void print(char c) {
        super.print(c);
        super.flush();
    }

    @Override
    public void print(int i) {
        super.print(i);
        super.flush();

    }

    @Override
    public void print(long l) {
        super.print(l);
        super.flush();

    }

    @Override
    public void print(float f) {
        super.print(f);
    }

    @Override
    public void print(double d) {
        super.print(d);
        super.flush();

    }

    @Override
    public void print(char[] s) {
        super.print(s);
        super.flush();

    }

    @Override
    public void print(String s) {
        super.print(s);
        super.flush();

    }

    @Override
    public void print(Object obj) {
        super.print(obj);
        super.flush();
    }

    @Override
    public void write(int c) {
        super.write(c);
        super.flush();

    }

    @Override
    public void write(char[] buf, int off, int len) {

        super.write(buf, off, len);
        super.flush();

    }

    @Override
    public void write(char[] buf) {
        super.write(buf);
        super.flush();

    }

    @Override
    public void write(String s, int off, int len) {
        super.write(s, off, len);
        super.flush();

    }

    @Override
    public void write(String s) {
        super.write(s);
        super.flush();

    }

    @Override
    public void println() {
        super.println();
        super.flush();

    }

    @Override
    public void println(boolean x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(char x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(int x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(long x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(float x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(double x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(char[] x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(String x) {
        super.println(x);
        super.flush();

    }

    @Override
    public void println(Object x) {
        super.println(x);
        super.flush();

    }

}
